<?php

require_once 'Swift-4.2.1/lib/swift_required.php';

// Create the Transport
//$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl');

$transport = Swift_SmtpTransport::newInstance('smtp.live.com', 25,'ssl')
  ->setUsername('delirio2004@hotmail.com')
  ->setPassword('.stich01')
  ;

// Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

// Create a message
$message = Swift_Message::newInstance('Wonderful Subject')
  ->setFrom(array('delirio2004@hotmail.com' => 'Horacio Alvarez'))
  ->setTo(array('alvarez.horacio.jose@gmail.com', 'alvarez.horacio.jose@gmail.com' => 'Openbiblio'))
  ->setBody('Esto es una prueba')
  ;

// Send the message
$result = $mailer->send($message);



    ?>  <!-- end of php tag-->